using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;

namespace DiceEngine
{
    public class ZombieGreenDice : Dice, IDice
    {
        public ZombieGreenDice()
        {
            Image faceImage = null;
            DiceFace shotgun = new DiceFace { Name = "BANG!", Description = "", DiceFaceImage = faceImage };
            DiceFace feet = new DiceFace { Name = "Escapes", Description = "", DiceFaceImage = faceImage };
            DiceFace brain = new DiceFace { Name = "BRAAAAINSSS!!!!", Description = "", DiceFaceImage = faceImage };
            dieFaces = new List<DiceFace>();
            dieFaces.Add(shotgun);
            dieFaces.Add(shotgun);
            dieFaces.Add(feet);
            dieFaces.Add(feet);
            dieFaces.Add(brain);
            dieFaces.Add(brain);
        }

        public List<DiceFace> dieFaces { get; set; }
        public ZombieGreenDice(List<DiceFace> faces)
            : base(faces)
        {
            dieFaces = faces;
        }
        public new string Roll()
        {
            Random random = new Random((int)DateTime.Now.Ticks);
            int dieRoll = random.Next(0, dieFaces.Count());
            return dieFaces.ElementAt(dieRoll).Name;
        }
    }
}
